/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cip.esymons.tesoreria.be;

import java.io.Serializable;

/**
 *
 * @author Gilmar Montoya
 */
public class MensajesSolicitantePK implements Serializable {

    private long envCodigo;
    private long solCodigo;

    public MensajesSolicitantePK() {
    }

    public MensajesSolicitantePK(long envCodigo, long solCodigo) {
        this.envCodigo = envCodigo;
        this.solCodigo = solCodigo;
    }

    public long getEnvCodigo() {
        return envCodigo;
    }

    public void setEnvCodigo(long envCodigo) {
        this.envCodigo = envCodigo;
    }

    public long getSolCodigo() {
        return solCodigo;
    }

    public void setSolCodigo(long solCodigo) {
        this.solCodigo = solCodigo;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) envCodigo;
        hash += (int) solCodigo;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof MensajesSolicitantePK)) {
            return false;
        }
        MensajesSolicitantePK other = (MensajesSolicitantePK) object;
        if (this.envCodigo != other.envCodigo) {
            return false;
        }
        if (this.solCodigo != other.solCodigo) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "org.cip.esymons.tesoreria.be.MensajesSolicitantePK[envCodigo=" + envCodigo + ", solCodigo=" + solCodigo + "]";
    }
}
